1
add_theme_support( 'title-tag' );
<title><?php wp_title(''); ?><?php if (!(is_404()) && (is_single()) || (is_page()) || (is_archive())) { ?> » <?php } ?><?php bloginfo('name'); ?></title>
//change sidebar parameters in child theme//
add_filter('dynamic_sidebar_params', 'twentytwentychild_edit_widget_func');
function twentytwentychild_edit_widget_func($params) {
$params[0]['before_title'] = '<h4 class="widget-title subheading heading-size-3">' ;
$params[0]['after_title'] = '</h4>' ;
return $params;
}
function my_custom_widget_title_tag( $params ) {
$params[0]['before_title'] = '<h4 class="widget-title widgettitle">' ;
$params[0]['after_title'] = '</h4>' ;
return $params;
}
add_filter( 'dynamic_sidebar_params' , 'my_custom_widget_title_tag' );